package com.youlai.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.common.base.MybatisBaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Table;
import lombok.Data;

/**
 * 组织表实体对象
 *
 * @author xiamw
 * @since 2023/12/09
 */
@Schema(description ="组织表实体对象")
@Data
@TableName("sys_org")
public class SysOrgEntity extends MybatisBaseEntity {

    @Schema(description ="主键ID")
    @TableId(type = IdType.INPUT)
    private Long orgId;

    @Schema(description ="组织编码")
    private String orgCode;

    @Schema(description ="组织名称")
    private String orgName;

    @Schema(description ="组织地址")
    private String orgAddress;

    @Schema(description ="组织类型")
    private Integer orgType;

    @TableField(exist = false)
    private String orgTypeName;

}